Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Argument to set width for diagnostic cli outputs #118

Merged
merged 4 commits into from
Apr 5, 2024

Conversation

c2bo
Copy link
Contributor

@c2bo c2bo commented Apr 4, 2024

Adds an argument to the cli set diagnostic width for cli

closes #116

Not exactly comfortable with the manual arg parsing and trying to catch incorrect cli usage but this seems to catch all kinds of weird/wrong inputs I could think of

lib/bin.js Outdated Show resolved Hide resolved
Copy link
Owner

@rvagg rvagg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, we've got a mini args parser growing here, next addition to the cli will probably either consolidate that or just add a proper args parser but this works nicely.

The remaining item here is updating the usage() function output to add [--width <chars>] to each of the 3 2diag commands.

Screenshot 2024-04-05 at 2 42 33 PM

@rvagg rvagg merged commit 4891cb8 into rvagg:master Apr 5, 2024
15 checks passed
@rvagg
Copy link
Owner

rvagg commented Apr 5, 2024

thanks for the contribution, semver-minor release coming up

github-actions bot pushed a commit that referenced this pull request Apr 5, 2024
## [4.2.0](v4.1.4...v4.2.0) (2024-04-05)

### Features

* cli argument to set width of diagnostic output ([#118](#118)) ([4891cb8](4891cb8))
Copy link

github-actions bot commented Apr 5, 2024

🎉 This PR is included in version 4.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to configure width for cli diagnostic output
2 participants